﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<HYBYSoft.Company.Models.Company>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    主页
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="content" class="contents">
        <div id="div_ContactUs" class="contact">
            <div class="home-title">
                联系我们</div>
            <br />
            <br />
            <div class="home-label-contact">
                <%= Html.LabelFor(model=>model.Address) %>:</div>
            <div class="home-field-contact">
                <%: Model.Address %></div>
            <div class="editor-empty">
            </div>
            <div class="home-label-contact">
                <%= Html.LabelFor(model=>model.Postcode) %>:</div>
            <div class="home-field-contact">
                <%: Model.Postcode%></div>
            <div class="editor-empty">
            </div>
            <div class="home-label-contact">
                电话:</div>
            <div class="home-field-contact">
            <ul>
                <li><%: Model.TelFirst %></li>
                <li><%: Model.TelSecond %></li>
                <li><%: Model.TelThird%></li>
            </ul>
            </div>
            <div class="editor-empty">
            </div>
            <div class="home-label-contact">
                <%= Html.LabelFor(model=>model.Fax) %>:</div>
            <div class="home-field-contact">
                <%: Model.Fax%></div>
            <div class="editor-empty">
            </div>
            <div class="home-label-contact">
                <%= Html.LabelFor(model=>model.E_mail) %>:</div>
            <div class="home-field-contact">
                <%: Model.E_mail%></div>
            <div class="editor-empty">
            </div>
        </div>
        <div id="div_About" class="about">
            <div class="home-title">
                资质荣誉</div>
            <br />
            <br />
            <%= Model.Honor %>
            <div class="home-title">
                公司简介</div>
            <br />
            <br />
            <br />
            &nbsp;&nbsp;&nbsp;&nbsp;
            <%= Model.Description%>
            <br />
            <br />
            <span>
                <%= Html.LabelFor(model=>model.Scale) %>:</span><span><%= Model.Scale %></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <span>
                <%= Html.LabelFor(model=>model.Type) %>:</span><span><%= Model.Type%></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <span>
                <%= Html.LabelFor(model=>model.Trade) %>:</span><span><%= Model.Trade%></span><br />
            <span>
                <%= Html.LabelFor(model=>model.Business) %>:</span><span><%= Model.Business%></span><br />
        </div>
        <div id="div_News" class="news">
            <div class="home-title">
                公司动态</div>
            <br />
            <br />
            <ul>
                <% 
                    foreach (var item in (IQueryable<Article>)ViewData["News"])
                    {
                %>
                <li>
                    <%= Html.ActionLink(item.Title.Length >= 10 ? item.Title.Substring(0, 10) + "..." : item.Title, "Details","Product", new { id = item.ArticleID },null)%>
                    <%-- <div style="margin-left:0px; float:inherit"><%= item.CreateTime.ToString("yyyy-MM-dd") %></div>--%>
                </li>
                <%} %>
            </ul>
        </div>
    </div>
</asp:Content>
